/*
 * Users_Log_Uart.h
 *
 *  Created on: Apr 2, 2021
 *      Author: MrWang
 */

#ifndef USERS_SHELL_LOG_USERS_LOG_UART_H_
#define USERS_SHELL_LOG_USERS_LOG_UART_H_

#include "main.h"
#include "usart.h"

//extern UART_HandleTypeDef huart2;

#define huart_debug			huart6
#define RXBufLen_debug		((uint16_t)256)
#define	USART_IRQn_debug	(USART6_IRQn)

extern uint8_t rxBuf_debug[RXBufLen_debug];

extern void Users_LogUart_ErrorCallback(void);
extern void Users_LogUart_TxCpltCallback(void);
extern void Users_LogUart_RxCpltCallback(void);
extern void Users_LogUart_Init(void);

#define Debug_RS485TXDis()			do{;}while(0)
#define Debug_RS485TXEn()			do{;}while(0)
HAL_GPIO_MODULE_ENABLED


#endif /* USERS_SHELL_LOG_USERS_LOG_UART_H_ */
